{if $parents}
	Parent categories: 
	{foreach from=$parents item=parent name='breadcrumbs'}
		<a href='/categories/{$parent->category_name|inurl}-{$parent->category_id}.html'>{$parent->category_name}</a>{if !$smarty.foreach.breadcrumbs.last} &raquo; {/if}
	{/foreach}
	<br/><br/>
{/if}

{if $categories}
	
	{foreach from=$categories item=cat}
	<div style='float:left; width:30%;margin:2px;padding:2px;text-align:center;'>
		<a href='/categories/{$cat->category_name|inurl}-{$cat->category_id}.html'>
		{if $cat->category_image}
			<img src='/content/images/resized/?w=150&src={$cat->category_image}'/>
		{else}
			<img src='/content/images/resized/?w=150&src={$theme}images/products/no_image.jpg'/>			
		{/if}
		</a>
		<a href='/categories/{$cat->category_name|inurl}-{$cat->category_id}.html'>{$cat->category_name}</a> 
	</div>
	{/foreach}
	
{/if}
